/*import { post } from '@/utils/request'

export default {
  pageList: query => post('/api/student/exampaper/answer/pageList', query),
  answerSubmit: form => post('/api/student/exampaper/answer/answerSubmit', form),
  read: id => post('/api/student/exampaper/answer/read/' + id),
  edit: form => post('/api/student/exampaper/answer/edit', form)
}*/

import request from '@/utils/request'

export function answerSubmit(form) {
  return request({
    url: '/api/student/exampaper/answer/answerSubmit',
    method: 'post',
    data: form
  })
}

export function pageList(form) {
  return request({
    url: '/api/student/exampaper/answer/pageList',
    method: 'post',
    data: form
  })
}

export function read(id) {
  return request({
    url: '/api/student/exampaper/answer/read/'+id,
    method: 'post',
  })
}

export function edit(form) {
  return request({
    url: '/api/student/exampaper/answer/edit',
    method: 'post',
    data: form
  })
}

export function pageListForAdmin(form) {
  return request({
    url: '/api/student/exampaper/answer/pageListForAdmin',
    method: 'post',
    data: form
  })
}

export function findAnswerCount(form) {
  return request({
    url: '/api/student/exampaper/answer/findAnswerCount',
    method: 'post',
    data: form
  })
}
